import VueRouter from 'vue-router'
import Home from './pages/Home'
import List from './pages/List'
import Detail from './pages/Detail'

let routers = new VueRouter({
    routes:[
        {
            path:"/",
            redirect:"/home"
        },
        {
            path:"/home",
            component:Home
        },
        {
            path:"/list",
            component:List
        },
        {
            name:"detail",
            path:"/detail",
            component:Detail
        }
    ]
})

export default routers